import xml改纯注解.service.impl.UserServiceImpl;
import proxy.UserServiceProxy;
import xml改纯注解.service.UserService;

public class Main {
    public static void main(String[] args) {
        UserService userservice = new UserServiceImpl();
        userservice.add();
        userservice.delete();
        userservice.update();
        userservice.query();
//新需求：不改动业务核心逻辑的情况下添加日志
        System.out.println("**米***米*不改动原有业务逻辑的情况下添加日志**米*****");
        UserServiceProxy userServiceProxy= new UserServiceProxy();
        userServiceProxy.setUserService(userservice);
        userServiceProxy.add();
        userServiceProxy.delete();
        userServiceProxy.update();
        userServiceProxy.query();
    }
}
